package com.hl.template422;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        String week = LocalDateTime.now().format(DateTimeFormatter.ofPattern("EEEE", Locale.CHINA));
        ((TextView)findViewById(R.id.tv_content)).setText(week);
    }
}